package com.ruoyi.huanghefd.domain;

import lombok.Data;

/**
 * @Author gnplum
 * @Date 2023/10/30 17:50
 * @PackageName:com.ruoyi.huanghefd.domain
 * @ClassName: ResultWS
 * @Description: TODO
 * @Version 1.0
 */
@Data
public class ResultWS {

    private Integer code;        //返回码：0-失败，1-成功
    private String errMsg="";   //返回内容

    public ResultWS(Integer code, String errMsg) {
        this.code = code;
        this.errMsg = errMsg;
    }
    public static <T> ResultWS rest(Integer code, String message) {
        return new ResultWS(code, message);
    }

}
